package com.xiaor.rssevent.service.impl;

import com.xiaor.rssevent.dao.MeetingDao;
import com.xiaor.rssevent.service.MeetingService;
import com.xiaor.rssmodel.model.Event;
import com.xiaor.rssmodel.model.Meeting;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MeetingServiceImpl implements MeetingService {
    @Autowired
    private MeetingDao meetingDao;
    private static Logger logger = LoggerFactory.getLogger(MeetingServiceImpl.class);

    @Override
    public Meeting findByName(Event event) {
        logger.info("findByName");
        return meetingDao.findByName(event);
    }

    @Override
    public List<Meeting> findAll() {
        logger.info("findAll");
        return meetingDao.findAll();
    }
}
